package com.designPatterns.decorator.demo;

import org.junit.Test;

/**
 * Created by houjinxin on 2016/11/27.
 */
public class Client {

    @Test
    public void test72Changes(){
        Monkey monkey = new Monkey();
        Change change1 = new Fish(monkey);
        change1.move();
        Change change2 = new Bird(change1);
        change2.move();


        Qitiandasheng monkey1 = new Monkey();
        Qitiandasheng change3 = new Fish(monkey1);
        change3.move();
        Qitiandasheng change4 = new Bird(change3);
        change4.move();
    }
}
